-- GENERATED SPELL FOR [Dun Garok Mountaineer] --


function spell0_2344(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_2344', 575, 1)
end

function spell1_2344(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(13953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2344', 672, 1)
end

function spell2_2344(pUnit, Event) --@Sleeping Sleep,Self--
pUnit:FullCastSpellOnTarget(42648,pUnit)
pUnit:RegisterEvent('Sorts_2344', 649, 1)
end

function Sorts_2344(pUnit, Event)
local choix_sorts_2344 = math.random(0, 2)
if choix_sorts_2344 == 0 then
pUnit:RegisterEvent('spell0_2344', 1, 1)
end
if choix_sorts_2344 == 1 then
pUnit:RegisterEvent('spell1_2344', 1, 1)
end
if choix_sorts_2344 == 2 then
pUnit:RegisterEvent('spell2_2344', 1, 1)
end
end

function mob2344_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2344', math.random(1500, 3000), 1)
end

function mob2344_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2344_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2344_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2344, 1, 'mob2344_Action')
RegisterUnitEvent(2344, 2, 'mob2344_Leave')
RegisterUnitEvent(2344, 3, 'mob2344_Kill')
RegisterUnitEvent(2344, 4, 'mob2344_Die')
